<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@include file="include/top.jsp" %>
<!DOCTYPE html >
<html >
<head>
    <meta charset="utf-8">
    <meta name="format-detection" content="telephone=no">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <title>日代 - 管理端系统</title>
	<link rel="icon" href="${ctx}/images/daigou.ico">
    <link href="http://cdn.bootcss.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="${ctx}/lte/css/login.css">
    <script src="http://cdn.bootcss.com/jquery/1.12.1/jquery.min.js"></script>
</head>
<body>
	<script type="text/javascript">
		try{
			if(parent.document.getElementsByTagName('iframe').length > 0){
				window.top.location.reload();
			}
		}catch(e){}
	</script>
		<div class="spacemain">
		<div class="mainlogin">
			<div class="leftxsb">
				<img src="${ctx}/res/images/login/yuanfang.jpg" alt="" height="460px;"/>
			</div>
			<div class="loginbox">
				<form id="loginForm" action="${ctx}/login" method="post" target=_top>
	  				<div class="xsbTitle">日代 - 管理端系统</div>
	  				<div class="loginform">
	  					<div class="userlogin"> 用户登录</div>
	  					<input id="username" name="username" type="text" class="username" placeholder="用户名"/>
						<input id="password" name="password" type="password" class="password" placeholder="密码"/>
						<div class="error-message">
				             <!-- <s:actionerror name="message"/> -->
				             <c:out value="message"></c:out>
				        </div>
						<div class="submitLogin">
			               <a class="submitButton" href="javascript:submit()" style="color: white;">
			               <i class="glyphicon glyphicon-user"></i> 登&nbsp;录</a>
			            </div>	
	  				</div>
				</form>
			</div>
			<div class="clear"></div>
		</div>
	</div>
  	<div class="footer">
  		<div class="footermain">
	  			<div class="jlInfo">
		  			<span>江苏南通玥彤股份有限公司</span><br>
		  			<span class="englishjl">caicai@souhu.com CO.,LTD.</span>
	  			</div>
  		</div>
  	</div>		
</body>
<script type="text/javascript">
$(function(){
	var height=document.body.clientHeight;
	
		if(height>620){
			if($(".footer").hasClass("marginbottom")){
				$(".footer").removeClass("marginbottom");
			}
			$(".footer").addClass("fixedbottom");
		}else {
			if($(".footer").hasClass("fixedbottom")){
				$(".footer").removeClass("fixedbottom");
			}
			$(".footer").addClass("marginbottom");
		}
		if(height>600){
			$(".mainlogin").css("padding-top",(height-450)/2+'px');
		}else{
			$(".mainlogin").css("margin-top",'30px');
		}
})
window.onresize=function(){
	var height=document.body.clientHeight;
			if(height>620){
				if($(".footer").hasClass("marginbottom")){
					$(".footer").removeClass("marginbottom");
				}
				$(".footer").addClass("fixedbottom");
			}else {
				if($(".footer").hasClass("fixedbottom")){
					$(".footer").removeClass("fixedbottom");
				}
				$(".footer").addClass("marginbottom");
			}
			if(height>600){
				$(".mainlogin").css("padding-top",(height-450)/2+'px');
			}else{
				$(".mainlogin").css("margin-top",'30px');
			}
}
</script>
<!-- jQuery 2.1.4 -->
<script src="${ctx}/lte/plugins/jQuery/jQuery-2.1.4.min.js"></script>
<script src="${ctx}/lte/plugins/jQuery/jquery.validate.min.js"></script>
<script src="${ctx}/lte/plugins/jQuery/jquery.validate.message.cn.js"></script>

<script src="${ctx}/lte/plugins/layer/layer.js"></script>
<script src="${ctx}/lte/js/common/common.js"></script>
<script type="text/javascript">
	$.ctx = '${ctx}';
	// 是否启用验证码
	var captchaEbabled = true;
</script>
<script src="${ctx}/lte/js/login.js"></script>
</html>